@import "../../less/var.less";
.add-box{
    background-color: white;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}
.form-box{
    width: 100%;
    padding: 20rpx;
    box-sizing: border-box;
    .item{
        display: flex;
        flex-flow: row nowrap;
        padding: 20rpx 0rpx;
        text{
            font-size: 28rpx;
            width: 180rpx;
            text-align: center;
            background-color: @gray;
            color: white;
            border-radius:8rpx 0rpx 0rpx 8rpx;
            height: 80rpx;
            line-height: 80rpx;
        }
        input,textarea,picker{
            // border:2rpx solid @gray;
            background-color: #dedede;
            border-radius: 0rpx 8rpx 8rpx 0rpx;
            flex-grow: 1;
            font-size: 28rpx;
            color: @dark;
            padding: 0rpx 20rpx;
            box-sizing: border-box;
        }
        input,picker{
            height: 80rpx;
            line-height: 80rpx;
        }
        &.block{
            flex-flow: row wrap;
            position: relative;
            text{
                border-radius: 8rpx 0rpx 0rpx 0rpx;
                z-index: 1;
            }
            &::after{
                content: "";
                position: absolute;
                width:100%;
                height: 80rpx;
                background-color: @gray;
                border-radius: 8rpx 8rpx 0rpx 0rpx;
                z-index: 0;
            }
            textarea{
                display: block;
                border-radius: 0rpx 0rpx 8rpx 8rpx;
                z-index: 1;
                padding: 20rpx;
            }
            .files{
                width: 100%;
                padding: 10rpx;
                background-color: #dedede;
                border-radius: 0rpx 0rpx 8rpx 8rpx;
                display: flex;
                flex-flow: row nowrap;
                white-space: nowrap;
                overflow: hidden;
                image{
                    width: 180rpx;
                    height: 180rpx;
                    background-color: white;
                    background-image: url("");
                    background-position: center;
                    background-repeat: no-repeat;
                    background-size: 50%;
                    border: 2rpx dashed #cccccc;
                    margin-left: 10rpx;
                    position: relative;
                    .remove{
                        position: absolute;
                        bottom: 0rpx;
                        left: 0px;
                        width: 100%;
                        background-color: rgba(0, 0, 0, 0.7);
                        color: white;
                        text-align: center;
                        font-weight: bold;
                    }
                } 
            }
        }
    }
}
